package main //必须

import "fmt"

func main() {
	var result int
	result = Add(4, 5)
	fmt.Println(" result = ", result)

	var funcType FuncType
	funcType = Add
	result = funcType(45, 78)
	fmt.Println(" add-result = ", result)

	funcType = Minus
	result = funcType(110, 78)
	fmt.Println(" Minus-result = ", result)

}

func Add(a, b int) int {
	return a + b
}

func Minus(a, b int) int {
	return a - b
}

type FuncType func(int, int) int
